<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
	import = "ass.beans.*"
	import = "ass.dao.*"
	import = "ass.dao.support.*"
	import = "java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Search Result</title>
</head>
<body>
	<%@ include file="header.html"%>
	<%@ include file="userNavBar.html"%>
  <div align="center">

  <table width="400" border="0">
  <%
  List<UserBean> userBeanList  =  (List<UserBean>) request.getAttribute("userList");
  
  if (userBeanList.size() == 0 ) {
	  out.print("<tr>");
	  out.print("<td>no user match the criteria</td>");
	  out.print("</tr>");
  }else {
	  for (UserBean userBean : userBeanList){
	  out.print("<tr>");
	  out.print("  <td>First Name:</td>");
	  out.print("   <td>:</td>");
	  out.print("  <td>"+ userBean.getFirst_name() +"</td>");
	  out.print("</tr>");
	  out.print("<tr>");
	  out.print("  <td>Last Name:</td>");
	  out.print("   <td>:</td>");
	  out.print("  <td>"+ userBean.getLast_name() +"</td>");
	  out.print("</tr>");
	  out.print("<tr>");
	  out.print("  <td>Email:</td>");
	  out.print("   <td>:</td>");
	  out.print("  <td>"+ userBean.getEmail() +"</td>");
	  out.print("</tr>");
	  out.print("  <td><a href='userFrdSearchDetail.jsp?username="+userBean.getUsername()+"'>go to the profile page</a></td>");
	  out.print("</tr>");
	  out.print("</tr>");
	  out.print("  <td>&nbsp;</td>");
	  out.print("</tr>");
	  }
  }
  %>
 </table>
 </div>
</body>
</html>